/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

//import anet.channel.strategy.dispatch.DispatchConstants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class MiniProgramPage {
    @NotNull
    private final String extMsg;
    private final int miniprogramType;
    @NotNull
    private final String path;
    @NotNull
    private final String userName;

    public MiniProgramPage(@NotNull String userName, @NotNull String path, int i2, @NotNull String extMsg) {
        Intrinsics.checkNotNullParameter(userName, "userName");
        Intrinsics.checkNotNullParameter(path, "path");
        Intrinsics.checkNotNullParameter(extMsg, "extMsg");
        this.userName = userName;
        this.path = path;
        this.miniprogramType = i2;
        this.extMsg = extMsg;
    }

    public static /* synthetic */ MiniProgramPage copy$default(MiniProgramPage miniProgramPage, String str, String str2, int i2, String str3, int i3, Object obj) {
        if ((i3 & 1) != 0) {
            str = miniProgramPage.userName;
        }
        if ((i3 & 2) != 0) {
            str2 = miniProgramPage.path;
        }
        if ((i3 & 4) != 0) {
            i2 = miniProgramPage.miniprogramType;
        }
        if ((i3 & 8) != 0) {
            str3 = miniProgramPage.extMsg;
        }
        return miniProgramPage.copy(str, str2, i2, str3);
    }

    @NotNull
    public final String component1() {
        return this.userName;
    }

    @NotNull
    public final String component2() {
        return this.path;
    }

    public final int component3() {
        return this.miniprogramType;
    }

    @NotNull
    public final String component4() {
        return this.extMsg;
    }

    @NotNull
    public final MiniProgramPage copy(@NotNull String userName, @NotNull String path, int i2, @NotNull String extMsg) {
        Intrinsics.checkNotNullParameter(userName, "userName");
        Intrinsics.checkNotNullParameter(path, "path");
        Intrinsics.checkNotNullParameter(extMsg, "extMsg");
        return new MiniProgramPage(userName, path, i2, extMsg);
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof MiniProgramPage)) {
            return false;
        }
        MiniProgramPage miniProgramPage = (MiniProgramPage) obj;
        return Intrinsics.areEqual(this.userName, miniProgramPage.userName) && Intrinsics.areEqual(this.path, miniProgramPage.path) && this.miniprogramType == miniProgramPage.miniprogramType && Intrinsics.areEqual(this.extMsg, miniProgramPage.extMsg);
    }

    @NotNull
    public final String getExtMsg() {
        return this.extMsg;
    }

    public final int getMiniprogramType() {
        return this.miniprogramType;
    }

    @NotNull
    public final String getPath() {
        return this.path;
    }

    @NotNull
    public final String getUserName() {
        return this.userName;
    }

    public int hashCode() {
        return (((((this.userName.hashCode() * 31) + this.path.hashCode()) * 31) + this.miniprogramType) * 31) + this.extMsg.hashCode();
    }

    @NotNull
    public String toString() {
        return "MiniProgramPage(userName=" + this.userName + ", path=" + this.path + ", miniprogramType=" + this.miniprogramType + ", extMsg=" + this.extMsg + ')';
    }
}